/**
 * CIGUtils.java created by zhangzhidong 
 * at 下午5:01:17 2016年4月9日
 */
package algorithm.CIG;

/**
 * @author zhangzhidong
 *
 */
public class CIGUtils {
	public static void swap(int arr[],int i,int j ){
		int temp = arr[i];
		arr[i]=arr[j];
		arr[j]=temp;
	}
	public static void printArray(int arr[]){
		String result = "(";
		for(int i = 0 ;i<arr.length;i++){

				if(result.endsWith(",")){
					result += arr[i];
				}else{
					if (result.contains(",")){
						result += ","+arr[i];
					}else{
						result+=arr[i]+",";
					}
				}


		}
		result+=")";
		System.out.println(result);
		
	}
}
